﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using DAL;
using Common;

namespace UI.system.page.storage
{
    public partial class storagelist : System.Web.UI.Page
    {
        //public ProductInfo info = new ProductInfo();
        public string[] imgs;
        public string Imgs = string.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {
            Imgs = "0";
            int id = JobRequest.GetRequestInt("id");
            if (id != 0)
            {
                //info = ProductDAL.FindOneByID(id);
                //if (info.Imgs != "" && info.Imgs != null)
                //{
                //    imgs = info.Imgs.Split(',');
                //    Imgs = SerializeHelper.ToJsonByDynamic(imgs);
                //}

            }
        }

        public void SetCookie(string vaule) { 
            HttpCookie cookie = new HttpCookie("prints");
            cookie.Value = ""+vaule+"";
            cookie.Expires = DateTime.Now.AddDays(1);
            HttpContext.Current.Response.Cookies.Add(cookie); 

        }
    }
}